package com.bwie.controller;

import com.bwie.asyncs.AsyncCreateTest;
import com.bwie.create.CreateAsync;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class ControllerAsync {

    @Autowired
    AsyncCreateTest asyncCreateTest;

    @PostMapping("/test1")
    public void test1(){
        asyncCreateTest.test1();
    }

    @PostMapping("/test2")
    public void test2(){
        asyncCreateTest.test2();
    }

    @PostMapping("/test3")
    public void test3(){
        asyncCreateTest.test3();
    }
}
